<?php
/*
Primary Author: Alex Arey
Updated: 3/2832012
Module Description: Updates announcements which are shown on index page of index controller.
*/

class Application_Form_Announcements extends Zend_Form {
	
public function init() {
	$textLenValid = new Zend_Validate_StringLength(array('max' => 1000));
	
	$this->addElement('textarea','STUDENT',
		array('label'=>'Announcement shown to students:','filters'=>array('StringTrim'),'validators'=>array($textLenValid)));
	
	$this->addElement('textarea','FACULTY',
	array('label'=>'Announcement shown to faculty/teachers:','filters'=>array('StringTrim'),'validators'=>array($textLenValid)));
	
	$this->addElement('textarea','ADMIN',
	array('label'=>'Announcement shown to administrators:','filters'=>array('StringTrim'),'validators'=>array($textLenValid)));
	
	$this->addElement('textarea','PARTNER',
	array('label'=>'Announcement shown to community partners:','filters'=>array('StringTrim'),'validators'=>array($textLenValid)));
	
	$this->addElement('textarea','NOLOGIN',
	array('label'=>'Announcement shown to users not logged in:','filters'=>array('StringTrim'),'validators'=>array($textLenValid)));

	$this->addElement('submit','submit',array('label'=>'Update Announcements'));
	}
}
?>
